<?php

# PMB Online
# Aplikasi Web Dosen di PT/PTS Indonesia
# 
# version 1.0
# class spp_view
# file
# created Mar 6, 2013 3:40:46 AM
# 
# (c)2012, arif.laksito@gmail.com

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
?>
<h3>Pengaturan Biaya SPP</h3>
<ul class="breadcrumb">
    <li>PMB Online <span class="divider">/</span></li>  
    <li>Data Master <span class="divider">/</span></li>
    <li>Biaya SPP</li>
</ul>

<?php if ($msg!=''): ?>
    <div class="<?php echo ($sts) ? 'alert alert-success' : 'alert alert-error' ?>">
        <?php echo $msg ?>
    </div>
<?php endif ?>

<p>
    <?php echo anchor('apps/spp_add', '<i class=icon-plus-sign></i> Tambah SPP', 'class="btn btn-small btn-success"') ?>
</p>

<table class="table table-condensed table-hover">
    <tr>
        <th>No</th>               
        <th>Nama Program Studi</th>        
        <th>Jenjang</th>                
        <th style="width:13%">SPP Tetap</th>                
        <th style="width:13%">SPP Variabel</th>                        
        <th></th>    
    </tr>
    <?php $no = 1 ?>
    <?php foreach ($jur as $j): ?>
        <tr>
            <td><?php echo $no ?></td>		
            <td><?php echo $j['nama_jurusan'] ?></td>
            <td><?php echo $j['jenjang'] ?></td>
            
            <td>
                <div class="pull-right" style="margin-right: 20px">
                    <?php echo number_format($j['spp_tetap']) ?>
                </div>
            </td>
            <td>
                <div class="pull-right" style="margin-right: 20px">
                    <?php echo number_format($j['spp_var']) ?>
                </div>
            </td>
            
            <td>
                <?php echo anchor('apps/spp_edit/' . $j['id_jurusan'], '<i class=icon-edit></i>') ?>&nbsp;&nbsp;&nbsp;
                <a href="#" id="confirm_<?php echo $j['id_jurusan'] ?>"><i class="icon-remove"></i></a>
            </td>
        </tr>		
        <?php $no++ ?>
    <?php endforeach ?>	
</table>    